package com.njbtd.controller;

import com.njbtd.common.R;
import com.njbtd.entity.FaultZyCollect;
import com.njbtd.mapper.primary.FaultZyCollectMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


@RestController
@RequestMapping("test")
public class TestController {

    @Resource
    private FaultZyCollectMapper faultZyCollectMapper ;

    @GetMapping("testQuery")
    public R testQuery() {
        List<FaultZyCollect> list = faultZyCollectMapper.wrapper().list();
        return R.success(list) ;
    }
}
